package com.example.brisk;

import cn.dev33.satoken.SaManager;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * springboot启动类
 * @EnableScheduling：启动Scheduled任务
 * @EnableFeignClients：启动feign客户端
 * @MapperScan：mybatis-plus扫描mapper映射路径
 */
@EnableScheduling
@EnableFeignClients
@SpringBootApplication
@MapperScan("com.example.brisk.mapper")
public class SpringbootBriskApplication {

    public static void main(String[] args) {
        try {
            SpringApplication.run(SpringbootBriskApplication.class, args);
//            System.out.println("启动成功，Sa-Token 配置如下：" + SaManager.getConfig());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
